package pipe

import "gitee.com/injoyai/goutil/net/tcp/v2"

type Listen struct {
	key         string //服务唯一标识
	sn          string //sn
	addr        string //映射的地址
	*tcp.Server        //tcp服务
}

func (this *Listen) setAddr(addr string) {
	if len(addr) == 0 {
		addr = "127.0.0.1:80"
	}
	this.addr = addr
}

func (this *Listen) getAddr() string {
	return this.addr
}
